#include "ThreadPool.hpp"
#include "Log.hpp"
#include <iostream>
#include <memory>

int main()
{
    EnableScreen(); // 开启日志

    unique_ptr<ThreadPool<int>> tp = make_unique<ThreadPool<int>>(5);//c++14
    tp->InitThreadPool();
    tp->Start();
    sleep(3);
    tp->Stop();
    tp->Wait();

    //Test(5, 11,22,33,100,1000);

    // LogMessage(__FILE__, __LINE__, DEBUG, "hello: %s", "world");//取当前的文件名和行号
    // LogMessage(__FILE__, __LINE__, DEBUG, "hello");
    // LogMessage(__FILE__, __LINE__, DEBUG, "hello");
    // LogMessage(__FILE__, __LINE__, DEBUG, "hello");
    // LogMessage(__FILE__, __LINE__, DEBUG, "hello");

    //EnableFile();
    // EnableScreen();

    // LOG(DEBUG, "hello %d %s %f", 10, "world", 7.11);
    // LOG(INFO, "hello yss");

    return 0;
}